package ajax.quanxuan.sys.service;

import ajax.quanxuan.sys.entity.User;
import ajax.quanxuan.vo.DeptVo;
import ajax.quanxuan.vo.UserVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author KazuGin
 * @since 2024-07-03
 */
public interface UserService extends IService<User> {
    //根据用户名查询用户信息
    User findUserByName(String userName) throws Exception;
    IPage<User> findUserListByPage(IPage<User> page, UserVo userVo, DeptVo deptVo)throws Exception;

    Set<Integer> findUserRoleByUserId(int id)  ;

    //保存用户和角色关系
    boolean saveUserRole(int userId, String roleIds) throws Exception;
}
